package arm.attestation.entity;

import arm.common.entity.ABaseEntity;
import arm.dic.entity.DicOrganization;

import javax.persistence.*;

@Entity
@Table (name = "CONTRACT")
public class Contract extends ABaseEntity
{
    private DicOrganization dicOrganization;
    private Integer year;
    private Integer num;

    @Basic
    @Column(name = "YEAR")
    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    @Basic
    @Column(name = "NUM")
    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @ManyToOne
    @JoinColumn(name = "DIC_ORGANIZATION_ID")
    public DicOrganization getDicOrganization() {
        return dicOrganization;
    }

    public void setDicOrganization(DicOrganization dicOrganization) {
        this.dicOrganization = dicOrganization;
    }
}


